
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>第 6 章 需求3: 页面单条转化率统计 · 大数据 bigdata_mallanalyze_atguigu 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.html" />
    
    
    <link rel="prev" href="di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">第 1 部分 电商分析系统介绍</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    第 1 章 项目简介
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../11-xiang-mu-zheng-ti-jie-shao.html">
            
                <a href="../11-xiang-mu-zheng-ti-jie-shao.html">
            
                    
                    1.1 项目整体介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../12-xiang-mu-zheng-ti-jia-gou.html">
            
                <a href="../12-xiang-mu-zheng-ti-jia-gou.html">
            
                    
                    1.2 项目整体架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="../13-ye-wu-xu-qiu.html">
            
                <a href="../13-ye-wu-xu-qiu.html">
            
                    
                    1.3 数据源分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="../14-xiang-mu-xu-qiu.html">
            
                <a href="../14-xiang-mu-xu-qiu.html">
            
                    
                    1.4 项目需求
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1.html">
            
                <a href="../chapter1.html">
            
                    
                    第 2 章 预备知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../di-3-zhang-xiang-mu-da-jian.html">
            
                <a href="../di-3-zhang-xiang-mu-da-jian.html">
            
                    
                    第 3 章 项目搭建
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../di-3-zhang-xiang-mu-da-jian/31-chuang-jian-fu-gong-cheng.html">
            
                <a href="../di-3-zhang-xiang-mu-da-jian/31-chuang-jian-fu-gong-cheng.html">
            
                    
                    3.1 创建父工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../di-3-zhang-xiang-mu-da-jian/32-chuang-jian-gong-zuo-zi-mo-kuai.html">
            
                <a href="../di-3-zhang-xiang-mu-da-jian/32-chuang-jian-gong-zuo-zi-mo-kuai.html">
            
                    
                    3.2 创建通用子模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../di-3-zhang-xiang-mu-da-jian/33-chuang-jian-mo-ni-shu-ju-zi-mo-kuai.html">
            
                <a href="../di-3-zhang-xiang-mu-da-jian/33-chuang-jian-mo-ni-shu-ju-zi-mo-kuai.html">
            
                    
                    3.3 创建模拟数据子模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">第 2 部分 电商分析系统需求实现</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="di-4-zhang-xu-qiu-1.html">
            
                <a href="di-4-zhang-xu-qiu-1.html">
            
                    
                    第 4 章 需求1: Top10 热门品类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.html">
            
                <a href="di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.html">
            
                    
                    第 5 章 需求2: Top10热门品类中的 Top10 活跃 Session 统计
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.3" data-path="di-6-zhang-xu-qiu-3-dan-ye-mian-tiao-zhuan-lv.html">
            
                <a href="di-6-zhang-xu-qiu-3-dan-ye-mian-tiao-zhuan-lv.html">
            
                    
                    第 6 章 需求3: 页面单条转化率统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.html">
            
                <a href="di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.html">
            
                    
                    第 7 章 需求4: 各区域热门商品 Top3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                <a href="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                    
                    第 8 章 需求5:  广告黑名单实时统计
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-li-xian-xiang-mu-yu-bei-zhi-shi.html">
            
                <a href="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-li-xian-xiang-mu-yu-bei-zhi-shi.html">
            
                    
                    8.1 离线项目预备知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-shi-shi-huan-jing-da-jian.html">
            
                <a href="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-shi-shi-huan-jing-da-jian.html">
            
                    
                    8.2 实时环境搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/82-xu-qiu-5-guang-gao-hei-ming-dan-shi-shi-tong-ji.html">
            
                <a href="di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/82-xu-qiu-5-guang-gao-hei-ming-dan-shi-shi-tong-ji.html">
            
                    
                    8.3 需求5: 广告黑名单实时统计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="di-9-zhang-xu-qiu-6-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                <a href="di-9-zhang-xu-qiu-6-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                    
                    第 9 章 需求6: 广告点击量实时统计 
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="di-10-zhang-xu-qiu-7-mei-tian-mei-di-qu-re-men-guang-gao-top3.html">
            
                <a href="di-10-zhang-xu-qiu-7-mei-tian-mei-di-qu-re-men-guang-gao-top3.html">
            
                    
                    第 10 章 需求7: 每天每地区 热门广告 Top3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="di-11-zhang-xin-zeng-xu-6c423a-zui-jin-1-xiao-shi-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                <a href="di-11-zhang-xin-zeng-xu-6c423a-zui-jin-1-xiao-shi-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                    
                    第 11 章 新增需求: 最近 1 小时广告点击量实时统计
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >第 6 章 需求3: 页面单条转化率统计</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7B2C;-6-&#x7AE0;-&#x9700;&#x6C42;3-&#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#x7EDF;&#x8BA1;">&#x7B2C; 6 &#x7AE0; &#x9700;&#x6C42;3: &#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#x7EDF;&#x8BA1;</h1>
<h2 id="61-&#x9700;&#x6C42;&#x7B80;&#x4ECB;">6.1 &#x9700;&#x6C42;&#x7B80;&#x4ECB;</h2>
<p>&#x8BA1;&#x7B97;&#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#xFF0C;&#x4EC0;&#x4E48;&#x662F;&#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x6362;&#x7387;&#xFF0C;&#x6BD4;&#x5982;&#x4E00;&#x4E2A;&#x7528;&#x6237;&#x5728;&#x4E00;&#x6B21; Session &#x8FC7;&#x7A0B;&#x4E2D;&#x8BBF;&#x95EE;&#x7684;&#x9875;&#x9762;&#x8DEF;&#x5F84; <code>3,5,7,9,10,21</code>&#xFF0C;&#x90A3;&#x4E48;&#x9875;&#x9762; <code>3</code> &#x8DF3;&#x5230;&#x9875;&#x9762; <code>5</code> &#x53EB;&#x4E00;&#x6B21;&#x5355;&#x8DF3;&#xFF0C;<code>7-9</code> &#x4E5F;&#x53EB;&#x4E00;&#x6B21;&#x5355;&#x8DF3;&#xFF0C;&#x90A3;&#x4E48;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#x5C31;&#x662F;&#x8981;&#x7EDF;&#x8BA1;&#x9875;&#x9762;&#x70B9;&#x51FB;&#x7684;&#x6982;&#x7387;</p>
<p>&#x6BD4;&#x5982;&#xFF1A;&#x8BA1;&#x7B97; <code>3-5</code> &#x7684;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#xFF0C;&#x5148;&#x83B7;&#x53D6;&#x7B26;&#x5408;&#x6761;&#x4EF6;&#x7684; <code>Session</code> &#x5BF9;&#x4E8E;&#x9875;&#x9762; 3 &#x7684;&#x8BBF;&#x95EE;&#x6B21;&#x6570;&#xFF08;PV&#xFF09;&#x4E3A; A&#xFF0C;&#x7136;&#x540E;&#x83B7;&#x53D6;&#x7B26;&#x5408;&#x6761;&#x4EF6;&#x7684; Session &#x4E2D;&#x8BBF;&#x95EE;&#x4E86;&#x9875;&#x9762; 3 &#x53C8;&#x7D27;&#x63A5;&#x7740;&#x8BBF;&#x95EE;&#x4E86;&#x9875;&#x9762; 5 &#x7684;&#x6B21;&#x6570;&#x4E3A; B&#xFF0C;&#x90A3;&#x4E48; B/A &#x5C31;&#x662F; 3-5 &#x7684;&#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;.</p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1552012480.png-atguiguText" alt=""></p>
<p>&#x4EA7;&#x54C1;&#x7ECF;&#x7406;&#x548C;&#x8FD0;&#x8425;&#x603B;&#x76D1;&#xFF0C;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x8FD9;&#x4E2A;&#x6307;&#x6807;&#xFF0C;&#x53BB;&#x5C1D;&#x8BD5;&#x5206;&#x6790;&#xFF0C;&#x6574;&#x4E2A;&#x7F51;&#x7AD9;&#xFF0C;&#x4EA7;&#x54C1;&#xFF0C;&#x5404;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x8868;&#x73B0;&#x600E;&#x4E48;&#x6837;&#xFF0C;&#x662F;&#x4E0D;&#x662F;&#x9700;&#x8981;&#x53BB;&#x4F18;&#x5316;&#x4EA7;&#x54C1;&#x7684;&#x5E03;&#x5C40;&#xFF1B;&#x5438;&#x5F15;&#x7528;&#x6237;&#x6700;&#x7EC8;&#x53EF;&#x4EE5;&#x8FDB;&#x5165;&#x6700;&#x540E;&#x7684;&#x652F;&#x4ED8;&#x9875;&#x9762;&#x3002;</p>
<p>&#x6570;&#x636E;&#x5206;&#x6790;&#x5E08;&#xFF0C;&#x53EF;&#x4EE5;&#x6B64;&#x6570;&#x636E;&#x505A;&#x66F4;&#x6DF1;&#x4E00;&#x6B65;&#x7684;&#x8BA1;&#x7B97;&#x548C;&#x5206;&#x6790;&#x3002; </p>
<p>&#x4F01;&#x4E1A;&#x7BA1;&#x7406;&#x5C42;&#xFF0C;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6574;&#x4E2A;&#x516C;&#x53F8;&#x7684;&#x7F51;&#x7AD9;&#xFF0C;&#x5404;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x4E4B;&#x95F4;&#x7684;&#x8DF3;&#x8F6C;&#x7684;&#x8868;&#x73B0;&#x5982;&#x4F55;&#xFF0C;&#x53EF;&#x4EE5;&#x9002;&#x5F53;&#x8C03;&#x6574;&#x516C;&#x53F8;&#x7684;&#x7ECF;&#x8425;&#x6218;&#x7565;&#x6216;&#x7B56;&#x7565;&#x3002;</p>
<p>&#x5728;&#x8BE5;&#x6A21;&#x5757;&#x4E2D;&#xFF0C;&#x9700;&#x8981;&#x6839;&#x636E;&#x67E5;&#x8BE2;&#x5BF9;&#x8C61;&#x4E2D;&#x8BBE;&#x7F6E;&#x7684; Session &#x8FC7;&#x6EE4;&#x6761;&#x4EF6;&#xFF0C;&#x5148;&#x5C06;&#x5BF9;&#x5E94;&#x5F97; Session &#x8FC7;&#x6EE4;&#x51FA;&#x6765;&#xFF0C;&#x7136;&#x540E;&#x6839;&#x636E;&#x67E5;&#x8BE2;&#x5BF9;&#x8C61;&#x4E2D;&#x8BBE;&#x7F6E;&#x7684;&#x9875;&#x9762;&#x8DEF;&#x5F84;&#xFF0C;&#x8BA1;&#x7B97;&#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#xFF0C;&#x6BD4;&#x5982;&#x67E5;&#x8BE2;&#x7684;&#x9875;&#x9762;&#x8DEF;&#x5F84;&#x4E3A;&#xFF1A;3&#x3001;5&#x3001;7&#x3001;8&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x8981;&#x8BA1;&#x7B97; 3-5&#x3001;5-7&#x3001;7-8 &#x7684;&#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#x3002;
&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x4E00;&#x70B9;&#x662F;&#xFF0C;&#x9875;&#x9762;&#x7684;&#x8BBF;&#x95EE;&#x65F6;&#x6709;&#x5148;&#x540E;&#x7684;&#xFF0C;&#x8981;&#x505A;&#x597D;&#x6392;&#x5E8F;&#x3002;</p>
<hr>
<h2 id="62-&#x601D;&#x8DEF;&#x5206;&#x6790;">6.2 &#x601D;&#x8DEF;&#x5206;&#x6790;</h2>
<ol>
<li><p>&#x8BFB;&#x53D6;&#x5230;&#x89C4;&#x5B9A;&#x7684;&#x9875;&#x9762;</p>
</li>
<li><p>&#x8FC7;&#x6EE4;&#x51FA;&#x6765;&#x89C4;&#x5B9A;&#x9875;&#x9762;&#x7684;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;, &#x5E76;&#x7EDF;&#x8BA1;&#x51FA;&#x6765;&#x6BCF;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x8BBF;&#x95EE;&#x6B21;&#x6570;   <code>countByKey</code> &#x662F;&#x884C;&#x52A8;&#x7B97;&#x5B50;  <code>reduceByKey</code> &#x662F;&#x8F6C;&#x6362;&#x7B97;&#x5B50;</p>
</li>
<li><p>&#x660E;&#x786E;&#x54EA;&#x4E9B;&#x9875;&#x9762;&#x9700;&#x8981;&#x8BA1;&#x7B97;&#x8DF3;&#x8F6C;&#x6B21;&#x6570; <code>1-2</code>, <code>2-3</code>, <code>3-4</code> ...</p>
</li>
<li><p>&#x6309;&#x7167; session &#x7EDF;&#x8BA1;&#x6240;&#x6709;&#x9875;&#x9762;&#x7684;&#x8DF3;&#x8F6C;&#x6B21;&#x6570;, &#x5E76;&#x4E14;&#x9700;&#x8981;&#x6309;&#x7167;&#x65F6;&#x95F4;&#x5347;&#x5E8F;&#x6765;&#x6392;&#x5E8F;</p>
<ul>
<li>&#x6309;&#x7167; session &#x5206;&#x7EC4;, &#x7136;&#x540E;&#x5E76;&#x5BF9;&#x6BCF;&#x7EC4;&#x5185;&#x7684; <code>UserVisitAction</code> &#x8FDB;&#x884C;&#x6392;&#x5E8F;</li>
<li>&#x8F6C;&#x6362;&#x8BBF;&#x95EE;&#x6D41;&#x6C34;</li>
<li>&#x8FC7;&#x6EE4;&#x51FA;&#x6765;&#x548C;&#x7EDF;&#x8BA1;&#x76EE;&#x6807;&#x4E00;&#x81F4;&#x7684;&#x8DF3;&#x8F6C;</li>
</ul>
</li>
<li><p>&#x7EDF;&#x8BA1;&#x8DF3;&#x8F6C;&#x6B21;&#x6570;</p>
</li>
<li><p>&#x8BA1;&#x7B97;&#x8DF3;&#x8F6C;&#x7387;</p>
</li>
<li><p>&#x5B58;&#x50A8;&#x5230; mysql &#x6570;&#x636E;&#x5E93;</p>
</li>
</ol>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1552014933.png-atguiguText" alt=""></p>
<hr>
<h2 id="63-&#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x5B9E;&#x73B0;">6.3 &#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x5B9E;&#x73B0;</h2>
<h3 id="1-&#x5EFA;&#x8868;">1. &#x5EFA;&#x8868;</h3>
<pre class="language-"><code class="lang-sql"><span class="token comment">-- ----------------------------</span>
<span class="token comment">-- create table page_conversion_rate</span>
<span class="token comment">-- ----------------------------</span>
<span class="token keyword">CREATE</span> <span class="token keyword">TABLE</span> <span class="token punctuation">`</span>page_conversion_rate<span class="token punctuation">`</span> <span class="token punctuation">(</span>
  <span class="token punctuation">`</span>taskId<span class="token punctuation">`</span> <span class="token keyword">TEXT</span><span class="token punctuation">,</span>
  <span class="token punctuation">`</span>page_page<span class="token punctuation">`</span> <span class="token keyword">TEXT</span><span class="token punctuation">,</span>
  <span class="token punctuation">`</span>conversion_rate<span class="token punctuation">`</span> <span class="token keyword">TEXT</span>
<span class="token punctuation">)</span> <span class="token keyword">ENGINE</span><span class="token operator">=</span><span class="token keyword">INNODB</span> <span class="token keyword">DEFAULT</span> <span class="token keyword">CHARSET</span><span class="token operator">=</span>utf8
</code></pre>
<h3 id="2-&#x5165;&#x53E3;">2. &#x5165;&#x53E3;</h3>
<pre class="language-"><code class="lang-scala">println<span class="token punctuation">(</span><span class="token string">&quot;&#x4EFB;&#x52A1;3: &#x5F00;&#x59CB;... &#x89C4;&#x5B9A;&#x9875;&#x9762;&#x8DF3;&#x8F6C;&#x7387;&quot;</span><span class="token punctuation">)</span>
PageConversionApp<span class="token punctuation">.</span>calcPageConversion<span class="token punctuation">(</span>spark<span class="token punctuation">,</span> userVisitActionRDD<span class="token punctuation">,</span> readConditions<span class="token punctuation">.</span>targetPageFlow<span class="token punctuation">,</span> taskId<span class="token punctuation">)</span>
println<span class="token punctuation">(</span><span class="token string">&quot;&#x4EFB;&#x52A1;3: &#x7ED3;&#x675F;&quot;</span><span class="token punctuation">)</span>
</code></pre>
<h3 id="3-&#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x4EE3;&#x7801;">3. &#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x4EE3;&#x7801;</h3>
<pre class="language-"><code class="lang-scala"><span class="token keyword">package</span> com<span class="token punctuation">.</span>atguigu<span class="token punctuation">.</span>sparkmall<span class="token punctuation">.</span>offline<span class="token punctuation">.</span>app

<span class="token keyword">import</span> java<span class="token punctuation">.</span>text<span class="token punctuation">.</span>DecimalFormat

<span class="token keyword">import</span> com<span class="token punctuation">.</span>atguigu<span class="token punctuation">.</span>sparkmall<span class="token punctuation">.</span>common<span class="token punctuation">.</span>bean<span class="token punctuation">.</span>UserVisitAction
<span class="token keyword">import</span> com<span class="token punctuation">.</span>atguigu<span class="token punctuation">.</span>sparkmall<span class="token punctuation">.</span>common<span class="token punctuation">.</span>util<span class="token punctuation">.</span>JDBCUtil
<span class="token keyword">import</span> org<span class="token punctuation">.</span>apache<span class="token punctuation">.</span>spark<span class="token punctuation">.</span>rdd<span class="token punctuation">.</span>RDD
<span class="token keyword">import</span> org<span class="token punctuation">.</span>apache<span class="token punctuation">.</span>spark<span class="token punctuation">.</span>sql<span class="token punctuation">.</span>SparkSession

<span class="token comment">/**
  * &#x9700;&#x6C42;3: &#x9875;&#x9762;&#x8F6C;&#x5316;&#x7387;
  */</span>
<span class="token keyword">object</span> PageConversionApp <span class="token punctuation">{</span>
    <span class="token comment">/**
      * &#x8BA1;&#x7B97;&#x9875;&#x9762;&#x8DF3;&#x8F6C;&#x8F6C;&#x5316;&#x7387;
      *
      * @param spark
      * @param userVisitActionRDD
      * @param conditions &#x8981;&#x7EDF;&#x8BA1;&#x7684;&#x9875;&#x9762;
      * @param taskId
      */</span>
    <span class="token keyword">def</span> calcPageConversion<span class="token punctuation">(</span>spark<span class="token operator">:</span> SparkSession<span class="token punctuation">,</span> userVisitActionRDD<span class="token operator">:</span> RDD<span class="token punctuation">[</span>UserVisitAction<span class="token punctuation">]</span><span class="token punctuation">,</span> targetPageFlow<span class="token operator">:</span> <span class="token builtin">String</span><span class="token punctuation">,</span> taskId<span class="token operator">:</span> <span class="token builtin">String</span><span class="token punctuation">)</span> <span class="token operator">=</span> <span class="token punctuation">{</span>
        <span class="token comment">// 1. &#x8BFB;&#x53D6;&#x5230;&#x89C4;&#x5B9A;&#x7684;&#x9875;&#x9762;</span>
        <span class="token keyword">val</span> pageFlowArr <span class="token operator">=</span> targetPageFlow<span class="token punctuation">.</span>split<span class="token punctuation">(</span><span class="token string">&quot;,&quot;</span><span class="token punctuation">)</span>
        <span class="token keyword">val</span> prePageFlowArr <span class="token operator">=</span> pageFlowArr<span class="token punctuation">.</span>slice<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span> pageFlowArr<span class="token punctuation">.</span>length <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">)</span>
        <span class="token keyword">val</span> postPageFlowArr <span class="token operator">=</span> pageFlowArr<span class="token punctuation">.</span>slice<span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> pageFlowArr<span class="token punctuation">.</span>length<span class="token punctuation">)</span>
        <span class="token comment">// 2. &#x8FC7;&#x6EE4;&#x51FA;&#x6765;&#x89C4;&#x5B9A;&#x9875;&#x9762;&#x7684;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;, &#x5E76;&#x7EDF;&#x8BA1;&#x51FA;&#x6765;&#x6BCF;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x8BBF;&#x95EE;&#x6B21;&#x6570;   countByKey &#x662F;&#x884C;&#x52A8;&#x7B97;&#x5B50;  reduceByKey &#x662F;&#x8F6C;&#x6362;&#x7B97;&#x5B50;</span>
        <span class="token keyword">val</span> targetPageCount <span class="token operator">=</span> userVisitActionRDD
            <span class="token punctuation">.</span>filter<span class="token punctuation">(</span>uva <span class="token keyword">=&gt;</span> pageFlowArr<span class="token punctuation">.</span>contains<span class="token punctuation">(</span>uva<span class="token punctuation">.</span>page_id<span class="token punctuation">.</span>toString<span class="token punctuation">)</span><span class="token punctuation">)</span>
            <span class="token punctuation">.</span>map<span class="token punctuation">(</span>uva <span class="token keyword">=&gt;</span> <span class="token punctuation">(</span>uva<span class="token punctuation">.</span>page_id<span class="token punctuation">,</span> <span class="token number">1L</span><span class="token punctuation">)</span><span class="token punctuation">)</span>
            <span class="token punctuation">.</span>countByKey

        <span class="token comment">// 3. &#x660E;&#x786E;&#x54EA;&#x4E9B;&#x9875;&#x9762;&#x9700;&#x8981;&#x8BA1;&#x7B97;&#x8DF3;&#x8F6C;&#x6B21;&#x6570; 1-2  2-3 3-4 ...</span>
        <span class="token keyword">val</span> targetJumpPages <span class="token operator">=</span> prePageFlowArr<span class="token punctuation">.</span>zip<span class="token punctuation">(</span>postPageFlowArr<span class="token punctuation">)</span><span class="token punctuation">.</span>map<span class="token punctuation">(</span>t <span class="token keyword">=&gt;</span> t<span class="token punctuation">.</span>_1 <span class="token operator">+</span> <span class="token string">&quot;-&quot;</span> <span class="token operator">+</span> t<span class="token punctuation">.</span>_2<span class="token punctuation">)</span>

        <span class="token comment">// 4. &#x6309;&#x7167; session &#x7EDF;&#x8BA1;&#x6240;&#x6709;&#x9875;&#x9762;&#x7684;&#x8DF3;&#x8F6C;&#x6B21;&#x6570;, &#x5E76;&#x4E14;&#x9700;&#x8981;&#x6309;&#x7167;&#x65F6;&#x95F4;&#x5347;&#x5E8F;&#x6765;&#x6392;&#x5E8F;</span>
        <span class="token comment">// 4.1 &#x6309;&#x7167; session &#x5206;&#x7EC4;, &#x7136;&#x540E;&#x5E76;&#x5BF9;&#x6BCF;&#x7EC4;&#x5185;&#x7684; UserVisitAction &#x8FDB;&#x884C;&#x6392;&#x5E8F;</span>
        <span class="token keyword">val</span> pageJumpRDD <span class="token operator">=</span> userVisitActionRDD<span class="token punctuation">.</span>groupBy<span class="token punctuation">(</span>_<span class="token punctuation">.</span>session_id<span class="token punctuation">)</span><span class="token punctuation">.</span>flatMap <span class="token punctuation">{</span>
            <span class="token keyword">case</span> <span class="token punctuation">(</span>sid<span class="token punctuation">,</span> actions<span class="token punctuation">)</span> <span class="token keyword">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">val</span> visitActions <span class="token operator">=</span> actions<span class="token punctuation">.</span>toList<span class="token punctuation">.</span>sortBy<span class="token punctuation">(</span>_<span class="token punctuation">.</span>action_time<span class="token punctuation">)</span>
                <span class="token comment">// 4.2 &#x8F6C;&#x6362;&#x8BBF;&#x95EE;&#x6D41;&#x6C34;</span>
                <span class="token keyword">val</span> pre <span class="token operator">=</span> visitActions<span class="token punctuation">.</span>slice<span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span> visitActions<span class="token punctuation">.</span>length <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">)</span>
                <span class="token keyword">val</span> post <span class="token operator">=</span> visitActions<span class="token punctuation">.</span>slice<span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span> visitActions<span class="token punctuation">.</span>length<span class="token punctuation">)</span>
                <span class="token comment">// 4.3 &#x8FC7;&#x6EE4;&#x51FA;&#x6765;&#x548C;&#x7EDF;&#x8BA1;&#x76EE;&#x6807;&#x4E00;&#x81F4;&#x7684;&#x8DF3;&#x8F6C;</span>
                pre<span class="token punctuation">.</span>zip<span class="token punctuation">(</span>post<span class="token punctuation">)</span><span class="token punctuation">.</span>map<span class="token punctuation">(</span>t <span class="token keyword">=&gt;</span> t<span class="token punctuation">.</span>_1<span class="token punctuation">.</span>page_id <span class="token operator">+</span> <span class="token string">&quot;-&quot;</span> <span class="token operator">+</span> t<span class="token punctuation">.</span>_2<span class="token punctuation">.</span>page_id<span class="token punctuation">)</span><span class="token punctuation">.</span>filter<span class="token punctuation">(</span>targetJumpPages<span class="token punctuation">.</span>contains<span class="token punctuation">(</span>_<span class="token punctuation">)</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>

        <span class="token comment">// 5. &#x7EDF;&#x8BA1;&#x8DF3;&#x8F6C;&#x6B21;&#x6570;  &#x6570;&#x636E;&#x91CF;&#x5DF2;&#x7ECF;&#x5F88;&#x5C11;&#x4E86;, &#x62C9;&#x5230;&#x9A71;&#x52A8;&#x7AEF;&#x8BA1;&#x7B97;</span>
        <span class="token keyword">val</span> pageJumpCount <span class="token operator">=</span> pageJumpRDD<span class="token punctuation">.</span>map<span class="token punctuation">(</span><span class="token punctuation">(</span>_<span class="token punctuation">,</span> <span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">.</span>reduceByKey<span class="token punctuation">(</span>_ <span class="token operator">+</span> _<span class="token punctuation">)</span><span class="token punctuation">.</span>collect

        <span class="token comment">// 6. &#x8BA1;&#x7B97;&#x8DF3;&#x8F6C;&#x7387;</span>

        <span class="token keyword">val</span> formatter <span class="token operator">=</span> <span class="token keyword">new</span> DecimalFormat<span class="token punctuation">(</span><span class="token string">&quot;.00%&quot;</span><span class="token punctuation">)</span>
        <span class="token comment">// &#x8F6C;&#x6362;&#x6210;&#x767E;&#x5206;&#x6BD4;</span>
        <span class="token keyword">val</span> conversionRate<span class="token operator">:</span> Array<span class="token punctuation">[</span><span class="token punctuation">(</span><span class="token builtin">String</span><span class="token punctuation">,</span> <span class="token builtin">String</span><span class="token punctuation">)</span><span class="token punctuation">]</span> <span class="token operator">=</span> pageJumpCount<span class="token punctuation">.</span>map <span class="token punctuation">{</span>
            <span class="token keyword">case</span> <span class="token punctuation">(</span>p2p<span class="token punctuation">,</span> jumpCount<span class="token punctuation">)</span> <span class="token keyword">=&gt;</span>
                <span class="token keyword">val</span> visitCount<span class="token operator">:</span> <span class="token builtin">Long</span> <span class="token operator">=</span> targetPageCount<span class="token punctuation">.</span>getOrElse<span class="token punctuation">(</span>p2p<span class="token punctuation">.</span>split<span class="token punctuation">(</span><span class="token string">&quot;-&quot;</span><span class="token punctuation">)</span><span class="token punctuation">.</span>head<span class="token punctuation">.</span>toLong<span class="token punctuation">,</span> <span class="token number">0L</span><span class="token punctuation">)</span>
                <span class="token keyword">val</span> rate<span class="token operator">:</span> <span class="token builtin">String</span> <span class="token operator">=</span> formatter<span class="token punctuation">.</span>format<span class="token punctuation">(</span>jumpCount<span class="token punctuation">.</span>toDouble <span class="token operator">/</span> visitCount<span class="token punctuation">)</span>
                <span class="token punctuation">(</span>p2p<span class="token punctuation">,</span> rate<span class="token punctuation">)</span>
        <span class="token punctuation">}</span>
        <span class="token comment">// 7. &#x5B58;&#x50A8;&#x5230;&#x6570;&#x636E;&#x5E93;</span>
        <span class="token keyword">val</span> result<span class="token operator">:</span> Array<span class="token punctuation">[</span>Array<span class="token punctuation">[</span><span class="token builtin">String</span><span class="token punctuation">]</span><span class="token punctuation">]</span> <span class="token operator">=</span> conversionRate<span class="token punctuation">.</span>map <span class="token punctuation">{</span>
            <span class="token keyword">case</span> <span class="token punctuation">(</span>p2p<span class="token punctuation">,</span> conversionRate<span class="token punctuation">)</span> <span class="token keyword">=&gt;</span> Array<span class="token punctuation">(</span>taskId<span class="token punctuation">,</span> p2p<span class="token punctuation">,</span> conversionRate<span class="token punctuation">)</span>
        <span class="token punctuation">}</span>
        JDBCUtil<span class="token punctuation">.</span>executeUpdate<span class="token punctuation">(</span><span class="token string">&quot;truncate page_conversion_rate&quot;</span><span class="token punctuation">,</span> <span class="token keyword">null</span><span class="token punctuation">)</span>
        JDBCUtil<span class="token punctuation">.</span>executeBatchUpdate<span class="token punctuation">(</span><span class="token string">&quot;insert into page_conversion_rate values(?, ?, ?)&quot;</span><span class="token punctuation">,</span> result<span class="token punctuation">)</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>

<span class="token comment">/*
1. &#x8BFB;&#x53D6;&#x5230;&#x89C4;&#x5B9A;&#x7684;&#x9875;&#x9762;
    &#x4F8B;&#x5982;: targetPageFlow:&quot;1,2,3,4,5,6,7&quot;

2. &#x8FC7;&#x6EE4;&#x51FA;&#x6765;&#x89C4;&#x5B9A;&#x9875;&#x9762;&#x7684;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55; &#x5E76;&#x7EDF;&#x8BA1;&#x51FA;&#x6765;&#x6BCF;&#x4E2A;&#x9875;&#x9762;&#x7684;&#x8BBF;&#x95EE;&#x6B21;&#x6570;
    &#x4F8B;&#x5982;: &#x53EA;&#x9700;&#x8FC7;&#x6EE4;&#x51FA;&#x6765;1,2,3,4,5,6   &#x7B2C;7&#x9875;&#x9762;&#x4E0D;&#x9700;&#x8981;&#x8FC7;&#x6EE4;

3. &#x8BA1;&#x7B97;&#x9875;&#x9762;&#x8DF3;&#x8F6C;&#x6B21;&#x6570;(&#x80AF;&#x5B9A;&#x662F;&#x6309;&#x7167;&#x6BCF;&#x4E2A; session &#x6765;&#x7EDF;&#x8BA1;)
    1-&gt;2  2-&gt;3 ...
    3.1 &#x7EDF;&#x8BA1;&#x6BCF;&#x4E2A;&#x9875;&#x9762;&#x8BBF;&#x95EE;&#x6B21;&#x6570;

4. &#x8BA1;&#x7B97;&#x8F6C;&#x5316;&#x7387;
    &#x9875;&#x9762;&#x8DF3;&#x8F6C;&#x6B21;&#x6570; / &#x9875;&#x9762;&#x8BBF;&#x95EE;&#x6B21;&#x6570;
    1-&gt;2/1 &#x8868;&#x793A;&#x9875;&#x9762;1&#x5230;&#x9875;&#x9762;2&#x7684;&#x8F6C;&#x5316;&#x7387;

5. &#x4FDD;&#x5B58;&#x5230;&#x6570;&#x636E;&#x5E93;
 */</span>
</code></pre>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2019-03-19 15:06:39
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.html" class="navigation navigation-prev " aria-label="Previous page: 第 5 章 需求2: Top10热门品类中的 Top10 活跃 Session 统计">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.html" class="navigation navigation-next " aria-label="Next page: 第 7 章 需求4: 各区域热门商品 Top3">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"第 6 章 需求3: 页面单条转化率统计","level":"2.3","depth":1,"next":{"title":"第 7 章 需求4: 各区域热门商品 Top3","level":"2.4","depth":1,"path":"di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.md","ref":"di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.md","articles":[]},"previous":{"title":"第 5 章 需求2: Top10热门品类中的 Top10 活跃 Session 统计","level":"2.2","depth":1,"path":"di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.md","ref":"di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.md","articles":[]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/62171757.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/83394736.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3394270.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/65028582.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/20359261.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/37472401.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3355397.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"http://bigdataatguigu.applinzi.com/"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 bigdata_mallanalyze_atguigu 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-6-zhang-xu-qiu-3-dan-ye-mian-tiao-zhuan-lv.md","mtime":"2019-03-19T07:06:39.347Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-07-19T00:04:29.500Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

